package com.fasteat.mall.entity;


import com.fasteat.common.util.CamelUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;

/**
 * @author ghost
 * @Description:搜索条件
 * @since 2021-2-8
 */
@ApiModel(description = "搜索条件对象")
public class SearchCondition {

	@ApiModelProperty(value = "查询条件(搜索字段以及搜索值)")
	private Map<String, String> entry;

	@ApiModelProperty(value = "尺寸")
	private Integer size;

	@ApiModelProperty(value = " 页码")
	private Integer current;

	public SearchCondition() {
	}

	public Map<String, String> getEntry() {
		return entry;
	}

	public void setEntry(Map<String, String> entry) {
		this.entry = CamelUtil.formatMapWithUnderline(entry);
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getCurrent() {
		return current;
	}

	public void setCurrent(Integer current) {
		this.current = current;
	}
}
